<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文章列表页</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/boxy.css" rel="stylesheet" type="text/css" />
<{insert_scripts files="./js/jquery.min.js,admin.js,jquery.boxy.js"}>
</head>
<body>
  <div class="list_border">
    <div class="box" style="height:500px;">
    <span style=" float:left;display:block; width:100%; height:500px; border:1px solid #0CF;overflow-y:scroll">
   <center><h3>当前产品分类结构图(多级)</h3></center>
   <hr/>
   <{function name=menu level=0}>
		    <{foreach $data as $entry}>	
            <br />		       
                    <img src="/images/admin/tree_linemiddle.gif"  align="absmiddle"/><{for $foo=0 to $level}><img src="/images/admin/tree_line.gif"  align="absmiddle"/><img src="/images/admin/tree_line.gif"  align="absmiddle"/><{/for}><{$entry.datil}><{if $level==0}><a class="button" title="为<font color='#33CCFF'><{$entry.datil}></font>添加子分类" href="/index.php?c=admin&a=sysconfig&mod=classadd&act=addchild&id=<{$entry.id}>"/><img src="/images/admin/addbuddy.gif"  align="absmiddle"/></a> <{/if}>
                  
			<{if isset($entry.child)}>
				<{call name=menu data=$entry.child level=$level+1}>
            <{else if $level!=0}>
           <a title="修改分类信息" class="edit" href="/index.php?c=admin&a=sysconfig&mod=classadd&act=modify&cat=1&id=<{$entry.id}>" alt="<{$entry.id}>&cat=1"/><img src="/images/admin/wall.gif"  align="absmiddle"/></a> 
           <a title="删除分类" class="del" href="#" alt="<{$entry.id}>&cat=1"/><img src="/images/admin/data_invalid.gif"  align="absmiddle"/></a>   
			<{/if}>             
		<{/foreach}>
<{/function}>   
<{call name=menu data=$arr1}>  
    </div>
  </div>
<script type="text/javascript">
$(function() {
	$(".button").boxy();
	$(".edit").boxy();	
	$(".del").click(function() {tempUrl=$(this).attr("alt"); Boxy.confirm("此分类及分类下所有产品将被删除，是否继续？", function() {window.location.href="/index.php?c=admin&a=sysconfig&mod=classadd&act=del&id="+tempUrl}, {title: "提示信息"}); return false; });
});
</script>
</body>
</html>
